package com.gugee.ins.common.model.spider.app.product;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.gugee.ins.common.model.spider.app.InsAppBloggerNode;
import com.gugee.ins.common.model.spider.app.InsAppImageVersion;
import lombok.Data;


/**
 *
 * @author Huangxin
 */
@Data
@JsonIgnoreProperties(ignoreUnknown = true)
public class InsAppProductBody {

    @JsonProperty("product_id")
    private Long productId;

    private InsAppBloggerNode merchant;

    private String name;

    private String price;

    @JsonProperty("current_price")
    private String currentPrice;

    @JsonProperty("full_price")
    private String fullPrice;

    @JsonProperty("full_price_stripped")
    private String fullPriceStripped;

    @JsonProperty("current_price_stripped")
    private String currentPriceStripped;

    private String description;

    @JsonProperty("external_url")
    private String externalUrl;

    @JsonProperty("checkout_style")
    private String checkoutStyle;

    @JsonProperty("review_status")
    private String reviewStatus;

    @JsonProperty("retailer_id")
    private String retailerId;

    @JsonProperty("can_share_to_story")
    private Boolean canShareToStory;

    @JsonProperty("main_image")
    private ProductImage mainImage;

    @JsonProperty("thumbnail_image")
    private ProductImage thumbnailImage;

    /**
     *
     * @author Huangxin
     */
    @Data
    @JsonIgnoreProperties(ignoreUnknown = true)
    public static class ProductImage {
        @JsonProperty("image_versions2")
        private InsAppImageVersion imageVersions;

        private String preview;
    }
}
